<%@page contentType="text/html" pageEncoding="UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="_include.jsp" %>
<html>
<%--路径 /forum--%>
<head>
    <script src="${pageContext.request.contextPath}/resources/js/jquery-2.1.1.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>home</title>
</head>
<body>
<h1>home</h1>

<c:choose>
    <c:when test="${map.userId != null}">
        <a href="/forum/sections">进入论坛</a><br/>
        <a href="/forum/signout">注销</a><br/>
        <a href="/forum/profile">我的信息</a><br/>
        <c:if test="${map.userType >0}">
            <a href="/forum/manager/home">管理</a><br/>
        </c:if>
    </c:when>
    <c:otherwise>
        <a href="/forum/sections">浏览版块</a><br/>
        <a href="/forum/signup">注册</a><br/>
        <a href="/forum/signin">登录</a><br/>
    </c:otherwise>
</c:choose>


<div>
    <a href="/forum/test">测试</a>
</div>
</body>
</html>
